import 'dart:convert';
/// id : "7fa82e74-676f-438f-90e8-2814054c7126"
/// documentId : null
/// reportType : "政策措施"
/// userId : "78fce297-6211-4ae1-ad5a-289b3a18d3aa"
/// uploadTime : "2023-04-10 15:52:02"
/// remark : ""
/// parseStatus : "2"
/// isRepeat : "0"
/// fileId : "687f9a8f-159b-475d-93bf-1953554f5134"
/// reqJson : "{\"files\":[],\"reportType\":\"政策措施\"}"
/// failReason : "sys error."
/// isValid : "1"
/// tenantId : ""
/// createBy : "78fce297-6211-4ae1-ad5a-289b3a18d3aa"
/// createTime : "2023-04-10 15:52:02"
/// updateBy : ""
/// updateTime : 1681113123000
/// riskLevel : ""
/// fileName : "观市APP接口对接"
/// fileType : "docx"

Upmodel upmodelFromJson(String str) => Upmodel.fromJson(json.decode(str));
String upmodelToJson(Upmodel data) => json.encode(data.toJson());
class Upmodel {
  Upmodel({
      this.id, 
      this.documentId, 
      this.reportType, 
      this.userId, 
      this.uploadTime, 
      this.remark, 
      this.parseStatus, 
      this.isRepeat, 
      this.fileId, 
      this.reqJson, 
      this.failReason, 
      this.isValid, 
      this.tenantId, 
      this.createBy, 
      this.createTime, 
      this.updateBy, 
      this.updateTime, 
      this.riskLevel, 
      this.fileName, 
      this.fileType,});

  Upmodel.fromJson(dynamic json) {
    id = json['id'];
    documentId = json['documentId'];
    reportType = json['reportType'];
    userId = json['userId'];
    uploadTime = json['uploadTime'];
    remark = json['remark'];
    parseStatus = json['parseStatus'];
    isRepeat = json['isRepeat'];
    fileId = json['fileId'];
    reqJson = json['reqJson'];
    failReason = json['failReason'];
    isValid = json['isValid'];
    tenantId = json['tenantId'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
    riskLevel = json['riskLevel'];
    fileName = json['fileName'];
    fileType = json['fileType'];
  }
  String? id;
  dynamic documentId;
  String? reportType;
  String? userId;
  String? uploadTime;
  String? remark;
  String? parseStatus;
  String? isRepeat;
  String? fileId;
  String? reqJson;
  String? failReason;
  String? isValid;
  String? tenantId;
  String? createBy;
  String? createTime;
  String? updateBy;
  num? updateTime;
  String? riskLevel;
  String? fileName;
  String? fileType;
Upmodel copyWith({  String? id,
  dynamic documentId,
  String? reportType,
  String? userId,
  String? uploadTime,
  String? remark,
  String? parseStatus,
  String? isRepeat,
  String? fileId,
  String? reqJson,
  String? failReason,
  String? isValid,
  String? tenantId,
  String? createBy,
  String? createTime,
  String? updateBy,
  num? updateTime,
  String? riskLevel,
  String? fileName,
  String? fileType,
}) => Upmodel(  id: id ?? this.id,
  documentId: documentId ?? this.documentId,
  reportType: reportType ?? this.reportType,
  userId: userId ?? this.userId,
  uploadTime: uploadTime ?? this.uploadTime,
  remark: remark ?? this.remark,
  parseStatus: parseStatus ?? this.parseStatus,
  isRepeat: isRepeat ?? this.isRepeat,
  fileId: fileId ?? this.fileId,
  reqJson: reqJson ?? this.reqJson,
  failReason: failReason ?? this.failReason,
  isValid: isValid ?? this.isValid,
  tenantId: tenantId ?? this.tenantId,
  createBy: createBy ?? this.createBy,
  createTime: createTime ?? this.createTime,
  updateBy: updateBy ?? this.updateBy,
  updateTime: updateTime ?? this.updateTime,
  riskLevel: riskLevel ?? this.riskLevel,
  fileName: fileName ?? this.fileName,
  fileType: fileType ?? this.fileType,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['documentId'] = documentId;
    map['reportType'] = reportType;
    map['userId'] = userId;
    map['uploadTime'] = uploadTime;
    map['remark'] = remark;
    map['parseStatus'] = parseStatus;
    map['isRepeat'] = isRepeat;
    map['fileId'] = fileId;
    map['reqJson'] = reqJson;
    map['failReason'] = failReason;
    map['isValid'] = isValid;
    map['tenantId'] = tenantId;
    map['createBy'] = createBy;
    map['createTime'] = createTime;
    map['updateBy'] = updateBy;
    map['updateTime'] = updateTime;
    map['riskLevel'] = riskLevel;
    map['fileName'] = fileName;
    map['fileType'] = fileType;
    return map;
  }

}